#ifndef MONSTER_CLIENT_H
#define MONSTER_CLIENT_H

#include "DirectionPosition.h"

#include <SFML/Graphics.hpp>
#include <SFML/Network.hpp>

class MonsterClient {
public :
	// Textures du monstre
	sf::Texture monsterRunLeft;
	sf::Texture monsterRunRight;

	/*Matrice permettant de gerer la collision Box et la place du sprite sur les texture*/
	sf::Vector2f textureRunLeftSequence[8];
	sf::Vector2f textureRunRightSequence[8];

	sf::Sprite monsterSprite;
	sf::Vector2f position;
	characterDirection direction;
	int sequence;

	sf::Time vitesseMove;

	sf::Time time;
	sf::Clock chronoTime;


	MonsterClient();
	void draw(sf::RenderWindow& w);
	void deplacement();
	void incSequence();
	void setPosition(int x, int y);
	void receive(sf::TcpSocket& socket);
	void animationMonster();

};

#endif